<%-- 
    Document   : roleList
    Created on : Dec 14, 2009, 3:47:08 PM
    Author     : student
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>List of Roles</title>
    </head>
    <body>
     <jsp:useBean id="roles" class="java.util.List<sgt.onlinetest.entity.Role>" scope="request"/>
        <table border="1">
          <tr>
            <th>No.</th>
            <th>Role Name</th>
          </tr>
           <% for (sgt.onlinetest.entity.Role r : roles) {%>
          <tr>
            <td><%=r.getAutoId()%></td>
            <td><a href="updaterole.jsp?id=<%=r.getAutoId()%>"><%=r.getName()%></a></td>
          </tr>
          <%}%>
        </table>
        <h1>&nbsp;</h1>
</body>
</html>
